package com.etc.tools;

import java.util.List;

/**
 * @前后交互数据类
 * @author Administrator
 *
 * @param <T>
 */
public class ResponseData<T> {

	private int code = 0;// 前后交互code
	private String msg = "";
	private long count; // 记录数
	private List<T> data;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public long getCount() {
		return count;
	}

	public void setCount(long count) {
		this.count = count;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public ResponseData(int code, String msg, long count, List<T> data) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}

	public ResponseData() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "ResponseData [code=" + code + ", msg=" + msg + ", count=" + count + ", data=" + data + "]";
	}

}
